<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>query_stu</title>
</head>
<body>

<form action="" method="get">
    <input type="text" name="wd" placeholder="请输入姓名或年龄">
    <input type="submit" value="搜索">
</form>

{% for student in students %}
    {{ student.name }}--{{ student.age }} <a href="{% url 'app1:del_stu' student.id %}">删除</a>
    <br>
{% endfor %}

</body>
</html>